# Example: Operator precedence

For these examples, tag1 = 5, tag2 = 7, and tag3 =10.

(tag1 > tag2) AND (tag1 < tag3) is evaluated in this sequence:

1. 1 tag1 > tag2 = 0
2. 2 tag1 < tag3 = 1
3. 3 0 AND 1 = 0

The expression evaluates to 0.

tag1 > tag2 AND tag3 is evaluated in this sequence:

1. 1 tag2 AND tag3 = 1
2. 2 tag1 > 1 = 1

The expression evaluates to 1.

NOT tag1 AND tag2 > tag3 ** 2 is evaluated in this sequence:

1. 1 NOT tag1 = 0
2. 2 0 AND tag2 = 0
3. 3 tag3 ** 2 = 100
4. 4 0 > 100 = 0

The expression evaluates to 0.

## See also

About expressions

Operator precedence in expressions